package com.song.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName : MyController
 * @Author : 司猫子
 * @Date: 2021/3/1 13:30
 */
@Controller
@RequestMapping("/nnn")
public class MyController {
    @RequestMapping("/hello")
    @ResponseBody
    public String hello(){
        return "hello";
    }
    @ResponseBody
    @RequestMapping("/hi")
    public String hi(){
        return "hi";
    }
}
